<?php
namespace app\admin\route;
use think\facade\Route;
use app\admin\middleware\Auth;
use app\admin\validate\Access;
Route::group("AdminAccess", function () {
    Route::post("index", 'AdminAccess/index');
    Route::post("add", 'AdminAccess/add');
    Route::post("edit", 'AdminAccess/edit');
    Route::post("del", 'AdminAccess/delete');
    Route::post("status", 'AdminAccess/status');
    Route::post("role_menu", 'AdminAccess/role_menu');
})->middleware(Auth::class)->allowCrossDomain();


Route::get('appAccess/:app_id', 'Access/appAccess')->middleware(Auth::class)->allowCrossDomain()->validate(Access::class, 'appAccess');
Route::post('appAccess', 'Access/setAppAccess')->middleware(Auth::class)->allowCrossDomain()->validate(Access::class, 'setAppAccess');